FROM openjdk:8

MAINTAINER congzhi
# 设置工作目录
WORKDIR /app
LABEL name="springboot-mybatis-k8s-image" vesion="1.0"  author="congzhi"
# 将宿主机当前目录jar copy到容器中
COPY spring-boot-mybatis-k8s.jar spring-boot-mybatis-k8s.jar

#ENTRYPOINT ["java","-jar","spring-boot-mybatis-k8s.jar"]
ENTRYPOINT ["java", "-Xms512m", "-Xms512m", "-Xss256k", "-Djava.security.egd=file:/dev/./urandom", "--add-opens", "java.base/java.lang=ALL-UNNAMED", "-jar", "/app/spring-boot-mybatis-k8s.jar", "--spring.profiles.active=test"]
# 指定端口
EXPOSE 8080 8080
